<!DOCTYPE html>
<html>
<head>  
<title>{:config('web.WEB_TIT')}</title>
<meta name="keywords" content="{:config('web.WEB_KEY')}">
<meta name="description" content="{:config('web.WEB_DES')}">
{include file="index/header"}
<link rel="stylesheet" href="/template/default/public/css/index.css">
<link rel="stylesheet" href="/template/default/public/css/right.css">
<div class="tpt-wp cl">
<div class="tpt-ml-7">
<div class="tpt-con1">
{if condition="config('web.WEB_FTP') neq 0"}
<div class="tpt-banner tpt-none-768 cl">
<div class="layui-carousel" id="banner">
  <div carousel-item>
    {volist name="tptb" id="vo"}
    <div><a target="_blank" href="{$vo.links}"><img src="{$vo.pic}"></a></div>
	{/volist}
  </div>
</div>
<script>
layui.use('carousel', function(){
  var carousel = layui.carousel;
  carousel.render({
    elem: '#banner'
    ,width: '100%'
    ,height: '320px'
	,interval: 4000
    ,arrow: 'always'
  });
});
</script>
</div>
{/if}

{if condition="config('web.WEB_FDZ') neq 0"}
<div class="tpt-dingzhi tpt-none-768 tpt-none-1024 tpt-none-1200 cl">
<h3>顶置推荐</h3>
<ul>
{volist name="tptc" id="vo"}
<li>
<a href="/thread/{$vo.id}.html">
{if condition="$vo['pic'] neq ''"}
<img src="{$vo.pic}" alt="{$vo.title}">
{else/}
<img src="/public/img/1.jpg" alt="暂无图片">
{/if}
</a>
<h2><a href="/thread/{$vo.id}.html" title="{$vo.title}">{$vo.title}</a></h2>
</li>
{/volist}
</ul>
</div>
<div class="tpt-none-768 tpt-none-1024 tpt-none-1200 tpt-bottom"></div>
{/if}

{if condition="config('web.WEB_FHY') neq 0"}
<div class="tpt-heads tpt-none-768 tpt-none-1024 tpt-none-1200 cl">
<h3>最新用户</h3>
<ul>
{volist name="tptm" id="vo"}
<li>
<a href="/home/{$vo.userid}.html"><img src="{$vo.userhead}" alt="{$vo.username}"></a>
<p><a href="/home/{$vo.userid}.html" title="{$vo.username}">{$vo.username}</a></p>
</li>
{/volist}
</ul>
</div>
<div class="tpt-none-768 tpt-none-1024 tpt-none-1200 tpt-bottom"></div>
{/if}

<ul class="tpt-list">
<h3>最新文章</h3>
{volist name="tptcs" id="vo"}
<li class="tpt-list-li">
{if condition="$vo['choice'] eq 1"}<div class="mod-angle">热</div>{/if}
<a href="/thread/{$vo.id}.html" class="tpt-list-avatar">
{if condition="$vo['pic'] neq ''"}
<img src="{$vo.pic}" alt="{$vo.title}">
{else/}
<img src="/public/img/nonepic.jpg" alt="暂无图片">
{/if}
</a>
<h2 class="tpt-tip"><a href="/thread/{$vo.id}.html">{$vo.title}</a></h2>
<p>
<span><a href="/home/{$vo.userid}.html"><img src="{$vo.userhead}" alt="{$vo.username}">{$vo.username}</a></span>
<span class="tpt-none-768">{$vo.time|date="Y-m-d h:i:s",###}</span>
<span class="tpt-list-hint" style="padding-right: 0;"> 
<i class="iconfont" title="回答">&#xe629;</i> {$vo.reply}
<i class="iconfont" title="人气" style="font-size: 20px;position: relative;top: 2px;">&#xe60a;</i> {$vo.view}
</span>
</p>
<p class="tpt-none-768">
{$vo.description}...
</p>
<p style="padding-top: 0;line-height: 20px;">
<span class="tpt-none-768 tpt-none-1024 tpt-none-1200 y" style="padding-right: 0;"><a href="/view/{$vo.cid}.html">{$vo.name}</a></span>
</p>
</li>
{/volist}
</ul>
<div class="pages">{$tptcs->render()}</div>
</div>
</div>

<div class="tpt-mr-3">
<div class="tpt-con2">
{include file="public/zanzhu"}
{include file="index/right"}
</div>
</div>

</div>
{include file="index/footer"}
</body>
</html>